using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;
using CommonTools;

namespace shop.Model
{

	
	public class JStock : IFastTree
	{
		[Column(IsIgnore =true)]
        public string NodeText => this.Code + " " + this.Name;

		[Column(IsPrimary = true, IsIdentity = true)]
		public int ID { get; set; }

		/// <summary> 制单人 </summary>
		[Column(StringLength = 50, IsNullable = false)]
		public string Biller { get; set; }

		/// <summary> 制单日期 </summary>
		public DateTime? BillerDate { get; set; }

		/// <summary> 审核人 </summary>
		[Column(StringLength = 50)]
		public string Checker { get; set; } = "";

		/// <summary> 代码 </summary>
		[VarChar(20)]
		public string Code { get; set; }

		/// <summary> 仓库地址 </summary>
		[Column(StringLength = 100)]
		public string FAddress { get; set; } = "";

		/// <summary> 是否审核：0=未审核，1=已审核 </summary>
		public bool? IsCheck { get; set; } = false;

		/// <summary> 是否禁用 </summary>
		public bool? Isdel { get; set; } = false;

		/// <summary> 是否明细 </summary>
		public bool? IsDetails { get; set; } = false;

		/// <summary> 扫码器可选 </summary>
		public int? IsScan { get; set; } = 0;

		/// <summary> 是否仓位管理 </summary>
		public bool? IsStockMgr { get; set; } = false;

		/// <summary> 名称 </summary>
		[Column(StringLength = 100)]
		public string Name { get; set; } = "";

		/// <summary> 助记码 </summary>
		[Column(StringLength = 50)]
		public string ShortNumber { get; set; } = "";

	}

}
